package com.gxuwz.com_property.repair.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gxuwz.com_property.repair.dto.RepairDto;
import com.gxuwz.com_property.repair.pojo.Repair;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;
import java.util.Map;

@Service
public interface RepairService {
    /**
     * 添加
     * */
    public Boolean addRepairInfo(Repair repair);
    /**
     * 修改
     * */
    public Boolean updateRepairInfo(Repair repair);

    /**
     * 删除
     * */
    @Transactional
    //开启事务，在提交时，将事务进行提交
    public Boolean delectRepairById(int id);

    /**
     * 根据Id进行查询
     * */
    public Repair selectRepairRepair(Repair repair);

    /**
     * 分页查询
     */
    public IPage<Repair> selectRepairByPage(Page<Repair> page,RepairDto repairDto);

    List<Map<String, Object>> RepairChartMangene();
}
